package dbobjects;

import dbreflection.tablemanagement.DOField;
import dbreflection.tablemanagement.DOTable;
import dbreflection.tablemanagement.DatabaseObject;

/**
 * Created by IntelliJ IDEA.
 * User: [J0k3r]
 * Date: 10.01.2009
 * Time: 15:55:34
 */
@DOTable(table = "db_user", pk = "id")
public class DBUser extends DatabaseObject {
    @DOField(column = "id")
    private Integer id;
    @DOField(column = "user_name")
    private String name;
    @DOField(column = "pass")
    private String pass;

    public DBUser() {
        this.id = UNASSIGNEDINT;
        this.name = UNASSIGNEDSTRING;
        this.pass = UNASSIGNEDSTRING;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public String toString() {
        return name;
    }
}
